#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time          : 2023/2/21 14:08
# File          : main.py
# @Author       : MingTai
# @Department   : platform_qa

from waitress import serve

from app_main.dao import configs
from app_main.dao.slq_connection import db
from manage import app
from  app_main.admin_one import admin
from app_main.user_one import user
import flask
from flask import Flask, request

SERVER_PORT = 16787
app.register_blueprint(admin)
app.register_blueprint(user)
# 加载配置文件
app.config.from_object(configs)
# db绑定app
db.init_app(app)

if __name__ == '__main__':
    serve(app, host="0.0.0.0", port=SERVER_PORT)
